/**
 * Created by lenovo on 2018-07-19.
 */
/*接单 取衣只能点击一次*/
function selectReceived(selectClick){
    $(selectClick).removeClass("selectReceived").addClass("cancelReceived");
    $(selectClick).prev().removeClass("cancelReceived").addClass("selectReceived");
    $(selectClick).prop("onclick",null).off("click");
    $(selectClick).attr('onclick','').unbind('click');
}
function cancelReceived(cancelClick){
    $(cancelClick).removeClass("selectReceived").addClass("cancelReceived");
    $(cancelClick).prop("onclick",null).off("click");
    $(cancelClick).attr('onclick','').unbind('click');
}

/*待接单、已完成js实现*/
function receiveOrder(rc){
    if($(rc).hasClass("a-style")){
        $(rc).parent().next().children().removeClass("a-style");
        return false;
    }else{
        $(rc).addClass("a-style");
        $(rc).parent().next().children().removeClass("a-style");
        $(".main-content").removeClass("hide").addClass("show");
        $(".main-finish").removeClass("show").addClass("hide");
    }
}
function finishOrder(rc){
    if($(rc).hasClass("a-style")){
        $(rc).parent().prev().children().removeClass("a-style");
        return false;
    }else{
        $(rc).addClass("a-style");
        $(rc).parent().prev().children().removeClass("a-style");
        $(".main-finish").removeClass("hide").addClass("show");
        $(".main-content").removeClass("show").addClass("hide");
    }
}

/*送件确认*/
function ok(fine){
    $(fine).css("background","#ACAAAB");
    $(fine).text("已完成");
    $(fine).prop("onclick",null).off("click");
    $(fine).attr('onclick','').unbind('click');
}